// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'ProductCosCalculateId',
        footer: "Foots",
        cnName: '成本计算单',
        name: 'ProductCosCalculate',
        newTabEdit: false,
        url: "/ProductCosCalculate/",
        sortName: "ProductCosCalculateId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {};
    const editFormOptions = [];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'ProductCosCalculateId',title:'成本计算单标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'PeriodYear',title:'会计年度',type:'int',width:110,require:true,align:'left'},
                       {field:'PeriodMonth',title:'会计期间',type:'int',width:110,require:true,align:'left'},
                       {field:'DepartmentId',title:'部门',type:'guid',bind:{ key:'部门级联',data:[]},width:110,require:true,align:'left'},
                       {field:'MaterialId',title:'产品标识',type:'int',bind:{ key:'物料字典',data:[]},width:110,require:true,align:'left'},
                       {field:'MaterialName',title:'产品名称',type:'string',width:180,require:true,align:'left'},
                       {field:'Spec',title:'规格型号',type:'string',width:180,align:'left'},
                       {field:'ProductTaskId',title:'生成任务单',type:'int',bind:{ key:'生产任务单编号',data:[]},width:110,require:true,align:'left'},
                       {field:'ExpenseMaterialId',title:'材料',type:'int',bind:{ key:'物料字典',data:[]},width:110,align:'left'},
                       {field:'ExpenseItemId',title:'费用项目',type:'int',bind:{ key:'费用项目',data:[]},width:110,align:'left'},
                       {field:'CostAmount',title:'成本金额',type:'decimal',width:110,align:'left'},
                       {field:'MaterialAmount',title:'材料成本',type:'decimal',width:110,align:'left'},
                       {field:'ExpenseAmount',title:'费用成本',type:'decimal',width:110,align:'left'},
                       {field:'CostItemId',title:'成本项目',type:'int',bind:{ key:'成本项目类型',data:[]},width:80,require:true,align:'left'},
                       {field:'Qty',title:'生产任务数量',type:'decimal',width:110,require:true,align:'left'},
                       {field:'StockInQty',title:'本期完工入库数量',type:'decimal',width:110,align:'left'},
                       {field:'StockInAmount',title:'本期完工入库金额',type:'decimal',width:110,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}